home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
network
/
net_co41.zip
/
netcont_.exe
/
MENU-PKT.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-03-31
|
6KB
|
171 lines
@ECHO OFF
REM ---------------------------------------------------------------------
REM Batch programm as a menu for calling Net-Control
REM (C) RzK Doris Köpke 02/94
REM
REM Calling this file with commandline parameters:
REM 1) NET-MENU GO
REM Net-Control is started at once and begins with the data
REM sampling process automatically
REM 2) NET-MENU GO STOP
REM Additionally to 1) Net-Control is stopped daily to start the
REM batch programm TESTDISK.BAT. This checks the logical structure
REM of the harddisk and starts Net-Control again, if no error is
REM detected.
REM ---------------------------------------------------------------------
IF "%1x"=="x" GOTO START
IF "%1"=="GO" GOTO NET-START
IF "%1"=="go" GOTO NET-START
%1 %2 %3 %4 %5 %6 %7 %8 %9
:START
BLUE
@ECHO OFF
ECHO ╔═════════════════════════════════════════════════╦═══════════════════════════╗
ECHO ║ Net-Control Menu ║ (C) RzK Doris Köpke 10/92 ║
ECHO ╠═════════════════════════════════════════════════╩═══════════════════════════╣
ECHO ║ (Select program by input of specified character:) ║
ECHO ╟─────────────────────────────────────┬───────────────────────────────────────╢
ECHO ║ │ ║
ECHO ║ 1 - Net-Control │ 4 - Net-Control with daily test of ║
ECHO ║ │ the logical structure of the ║
ECHO ║ 2 - Net-Control with direct start │ harddisk (performed by CHKDSK) ║
ECHO ║ of data sampling │ (Stops in case of an error) ║
ECHO ║ │ ║
ECHO ║ 3 - Net-Control: Controlling │ ║
ECHO ║ the stored data │ ║
ECHO ╟─────────────────────────────────────┼───────────────────────────────────────╢
ECHO ║ C - Configure Packet Driver and │ S - Save Net-Control configuration ║
ECHO ║ Statistic Interface │ and all *.SDF files ║
ECHO ╟─────────────────────────────────────┼───────────────────────────────────────╢
ECHO ║ N - New Net-Control Version │ R - Register Net-Control ║
ECHO ║ │ ║
ECHO ║ │ E - End Menu ║
ECHO ╠═════════════════════════════════════╧═══════════════════════════════════════╣
ECHO ║ ║
ECHO ╚═════════════════════════════════════════════════════════════════════════════╝
KEY 1234CSENR Select :
IF ERRORLEVEL 10 GOTO REGIST
IF ERRORLEVEL 9 GOTO NEW-EAK-UTIL
IF ERRORLEVEL 8 GOTO NEW-NET-CONT
IF ERRORLEVEL 7 GOTO ENDE
IF ERRORLEVEL 6 GOTO SAV-SDF
IF ERRORLEVEL 5 GOTO P-SETUP
IF ERRORLEVEL 4 GOTO NET-C-TD
IF ERRORLEVEL 3 GOTO NET-DATA
IF ERRORLEVEL 2 GOTO NET-GO
IF ERRORLEVEL 1 GOTO NET-CONT
IF ERRORLEVEL 0 GOTO ENDE
GOTO ENDE
:NET-CONT
CALL NC-START.BAT
ECHO.
ECHO.
PAUSE
GOTO START
:NET-START
IF "%2"=="stop" GOTO NET-C-TD
IF "%2"=="STOP" GOTO NET-C-TD
:NET-GO
CALL NC-START.BAT GO
GOTO START
:NET-DATA
CALL NC-START.BAT DATA
GOTO START
:NET-C-TD
CALL TESTDISK.BAT
GOTO START
:P-SETUP
P-SETUP
GOTO START
:SAV-SDF
IF NOT EXIST ADRESSEN.SDF GOTO SAV-ERROR
MD SDF-SAVE > nul
COPY *.SDF SDF-SAVE > nul
COPY *.CFG SDF-SAVE > nul
REN *.SDF *.S$F > nul
COPY SDF-SAVE\*.SDF > nul
DEL *.S$F > nul
ECHO.
ECHO The configuration has been saved to a local subdirectory.
ECHO.
ECHO Additional save it to a floppy disk ? (Y/N) :
KEY YN
IF ERRORLEVEL 2 GOTO START
ECHO Save to which drive (A,B) :
KEY AB
IF ERRORLEVEL 2 GOTO DRV-B
IF ERRORLEVEL 1 GOTO DRV-A
GOTO START
:DRV-A
COPY *.CFG A: > nul
COPY *.SDF A: > nul
ECHO.
ECHO Net-Control configuration saved to drive A:.
ECHO.
PAUSE
GOTO START
:DRV-B
COPY *.CFG B: > nul
COPY *.SDF B: > nul
ECHO.
ECHO Net-Control configuration saved to drive B:.
PAUSE
GOTO START
GOTO START
:SAV-ERROR
SOUND TUUT TUUT
ECHO.
ECHO ╔═════════════════════════════════════════════════════════════════════════════╗
ECHO ║ Before you can save your configuration files, you have ║
ECHO ║ to adjust Net-Control to your network. ║
ECHO ║ At least define an addresslist of known addresses in ║
ECHO ║ the file ADRESSEN.SDF. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════════╝
ECHO.
PAUSE
GOTO START
:NEW-NET-CONT
ECHO In which drive is the disk with the new Net-Control version (A,B) :
KEY AB
IF ERRORLEVEL 2 GOTO DRIV-B
IF ERRORLEVEL 1 GOTO DRIV-A
GOTO START
:DRIV-A
A:INSTALL
PAUSE
GOTO START
:DRIV-B
B:INSTALL
PAUSE
GOTO START
:REGIST
ECHO In which drive is the disk with the Net-Control authentisationcode ?
ECHO Please enter a "-", if you don't have that disk at hand. (A,B,-) :
KEY AB-
IF ERRORLEVEL 3 GOTO REG-HERE
IF ERRORLEVEL 2 GOTO REG-B
IF ERRORLEVEL 1 GOTO REG-A
GOTO START
:REG-A
NET-SNAP A:
GOTO START
:REG-B
NET-SNAP B:
GOTO START
:REG-HERE
NET-SNAP
GOTO START
:ENDE
CLS